package com.xiaowan.exception;

/**
 * 抛出异常的类  对抛出做了封装
 */
public class ExceptionCast {
    public static void cast(Integer code,String msg){
        throw new CustomException(code,msg);
    }

}